package com.bright.cwduijie.duijie.repository;

import com.bright.cwduijie.duijie.pojo.po.DjFile;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface DjFileRepository extends JpaRepository<DjFile, Integer>, JpaSpecificationExecutor<DjFile> {

    @Query("from DjFile where sjjhbz=:sjjhbz and opType=:opType and tyshxydm=:tyshxydm")
    List<DjFile> getAllFiles(@Param("sjjhbz") int sjjhbz, @Param("opType") int opType, @Param("tyshxydm") String tyshxydm);

}